package edu.bu.cs673.superkids123.parents.controller;

import edu.bu.cs673.superkids123.AbstractController;
import edu.bu.cs673.superkids123.AbstractFrame;
import edu.bu.cs673.superkids123.common.model.Achievement;
import edu.bu.cs673.superkids123.parents.DataObjectAccess.AchievementManager;

public class ManageAchievementsController extends AbstractController {

	public ManageAchievementsController(AbstractFrame mainFrame) {
		super(mainFrame);
	}

	public void editAchievement(Achievement achievement) {
		
	}
	
	/**
	 * Disables achievement and removes it from lists.
	 * 
	 * @param achievement
	 */
	public void disableAchievement(Achievement achievement) {
		achievement.setActive(false);
		AchievementManager.updateAchievement(achievement);
	}
}
